package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.AbilityassessmentDailylifeMapper;
import com.ruoyi.merchant.domain.AbilityassessmentDailylife;
import com.ruoyi.merchant.service.IAbilityassessmentDailylifeService;

/**
 * 能力评估-日常生活活动Service业务层处理
 * 
 * @author chengxin.ju
 * @date 2023-12-24
 */
@Service
public class AbilityassessmentDailylifeServiceImpl implements IAbilityassessmentDailylifeService 
{
    @Autowired
    private AbilityassessmentDailylifeMapper abilityassessmentDailylifeMapper;

    /**
     * 查询能力评估-日常生活活动
     * 
     * @param baseId 能力评估-日常生活活动主键
     * @return 能力评估-日常生活活动
     */
    @Override
    public AbilityassessmentDailylife selectAbilityassessmentDailylifeByBaseId(String baseId)
    {
        return abilityassessmentDailylifeMapper.selectAbilityassessmentDailylifeByBaseId(baseId);
    }

    /**
     * 查询能力评估-日常生活活动列表
     * 
     * @param abilityassessmentDailylife 能力评估-日常生活活动
     * @return 能力评估-日常生活活动
     */
    @Override
    public List<AbilityassessmentDailylife> selectAbilityassessmentDailylifeList(AbilityassessmentDailylife abilityassessmentDailylife)
    {
        return abilityassessmentDailylifeMapper.selectAbilityassessmentDailylifeList(abilityassessmentDailylife);
    }

    /**
     * 新增能力评估-日常生活活动
     * 
     * @param abilityassessmentDailylife 能力评估-日常生活活动
     * @return 结果
     */
    @Override
    public int insertAbilityassessmentDailylife(AbilityassessmentDailylife abilityassessmentDailylife)
    {
        return abilityassessmentDailylifeMapper.insertAbilityassessmentDailylife(abilityassessmentDailylife);
    }

    /**
     * 修改能力评估-日常生活活动
     * 
     * @param abilityassessmentDailylife 能力评估-日常生活活动
     * @return 结果
     */
    @Override
    public int updateAbilityassessmentDailylife(AbilityassessmentDailylife abilityassessmentDailylife)
    {
        return abilityassessmentDailylifeMapper.updateAbilityassessmentDailylife(abilityassessmentDailylife);
    }

    /**
     * 批量删除能力评估-日常生活活动
     * 
     * @param baseIds 需要删除的能力评估-日常生活活动主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentDailylifeByBaseIds(String[] baseIds)
    {
        return abilityassessmentDailylifeMapper.deleteAbilityassessmentDailylifeByBaseIds(baseIds);
    }

    /**
     * 删除能力评估-日常生活活动信息
     * 
     * @param baseId 能力评估-日常生活活动主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentDailylifeByBaseId(String baseId)
    {
        return abilityassessmentDailylifeMapper.deleteAbilityassessmentDailylifeByBaseId(baseId);
    }
}
